Finding ID | Version | Rule ID | IA Controls | Severity |
---|---|---|---|---|
V-217170 | SLES-12-010710 | SV-217170r646728_rule | Medium |
Description |
---|
If local interactive users are not assigned a valid home directory, there is no place for the storage and control of files they should own. |
STIG | Date |
---|---|
SLES 12 Security Technical Implementation Guide | 2021-03-04 |
Check Text ( C-18398r646726_chk ) |
---|
Verify SUSE operating system local interactive users on the system have a home directory assigned. Check for missing local interactive user home directories with the following command: > sudo pwck -r user 'smithj': directory '/home/smithj' does not exist Ask the System Administrator (SA) if any users found without home directories are local interactive users. If the SA is unable to provide a response, check for users with a User Identifier (UID) of 1000 or greater with the following command: > sudo awk -F: '($3>=1000)&&($7 !~ /nologin/){print $1, $3, $6}' /etc/passwd If any interactive users do not have a home directory assigned, this is a finding. |
Fix Text (F-18396r646727_fix) |
---|
Assign home directories to all SUSE operating system local interactive users that currently do not have a home directory assigned. Assign a home directory to users via the usermod command: > sudo usermod -d /home/smithj smithj |